package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 评论对象 b_comments
 * 
 * @author ruoyi
 * @date 2025-07-03
 */
public class BComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 文章表外键 */
    @Excel(name = "文章表外键")
    private Long postId;

    /** 评论者名称 */
    @Excel(name = "评论者名称")
    private String authorName;

    /** 评论者邮箱 */
    @Excel(name = "评论者邮箱")
    private String authorEmail;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 父评论id */
    @Excel(name = "父评论id")
    private Long parentId;

    private Integer cStatus;

    private List<BComments> children;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setAuthorName(String authorName) 
    {
        this.authorName = authorName;
    }

    public String getAuthorName() 
    {
        return authorName;
    }

    public void setAuthorEmail(String authorEmail) 
    {
        this.authorEmail = authorEmail;
    }

    public String getAuthorEmail() 
    {
        return authorEmail;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public List<BComments> getChildren() {
        return children;
    }

    public void setChildren(List<BComments> children) {
        this.children = children;
    }

    public Integer getcStatus() {
        return cStatus;
    }

    public void setcStatus(Integer cStatus) {
        this.cStatus = cStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("authorName", getAuthorName())
            .append("authorEmail", getAuthorEmail())
            .append("content", getContent())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
